//参数需要满足 name age 接口
interface IUser {
    name:string;
    //非json对象，接口定义区域用分号隔开

    age:number;
    
    hometown:string;
}

const hj = {
    name:'黄俊',
    age: 89,
    hometown:'南昌'
}

const getUserInfo = (user:IUser) => {

}

getUserInfo(hj);